#!/usr/bin/env python
# encoding: utf-8


"""
  @author: gaogao
  @file: write_data_2_file.py
  @time: 2020/11/2 11:01
  @desc:
"""

from my_log.logger import logger


def writeData2File(file_path, data_list):
    try:
        with open(file_path, "a+") as f:
            f.writelines(data_list)
            f.write("\n")
    except Exception as e:
        logger.error("writeData2File," + str(e))
